/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import cn.webrx.service.IBookService;
import cn.webrx.service.impl.BookServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * <p>Project: mp2022 - App
 * <p>Powered by webrx On 2022-04-16 17:02:49
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@SpringBootApplication @MapperScan("cn.webrx.mapper")
public class App implements ApplicationRunner {
    @Autowired
    IBookService bs;
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println(bs.list());
    }
}
